//
// Created by GYC on 2021/6/4.
//

#include "../../common.h"

class Solution {

private:
public:
    string convertToTitle(int columnNumber) {
        string res = "";
        while (columnNumber--) {
            int curr = columnNumber % 26;
            columnNumber /= 26;
            res += curr + 'A';
        }
        reverse(res.begin(), res.end());
        return res;
    }
};


int main() {
    cout << Solution().convertToTitle(701) << endl;
}